﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Calc.aspx.cs" Inherits="FitCalc.Calc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel1" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        Calculate conversion between pace (min/Km) and speed (km/h) min/km
        
        <asp:TextBox ID="paceMinutes" runat="server" MaxLength="2" Width="2em" >01</asp:TextBox>:
        <asp:TextBox ID="paceSeconds" runat="server" MaxLength="2" Width="2em" >01</asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="paceMinutes"
            ErrorMessage="Minutes must be between 00 and 99" ForeColor="Red" ValidationExpression="[0-9]{1,2}"></asp:RegularExpressionValidator> 
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="paceSeconds"
            ErrorMessage="Seconds must be between 00 and 59" ForeColor="Red" ValidationExpression="[0-9]{1,2}"></asp:RegularExpressionValidator> 
        km/h
        <asp:TextBox ID="speed" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
    </asp:Panel>
</asp:Content>
